package liangtWorkSpace.springAndMybatis.dao;

import liangtWorkSpace.springAndMybatis.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liangt
 * @ClassName: StudentDao
 * @title: StudentDao
 * @projectName liangtWorkSpace.springAndMybatis.dao
 * @description: TODO
 * @date 2020/10/21 18:23
 */
public interface StudentDao {

    /**
     * 获取所有学生
     * @return
     */
    public List<Student> getAllStudent();

    /**
     * 根据ID获取学生
     * @param studentID
     * @return
     */
    public Student getStudentByID(@Param("studentID") int studentID);


    /**
     * 新增学生信息
     * @param student
     * @return
     */
    public int add(Student student);

    /**
     * 删除学生
     * @param studentID
     * @return
     */
    public int delete(int studentID);

    /**
     * 更新学生信息
     * @param student
     * @return
     */
    public int update(Student student);
}
